projects
/
utf8proc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa82a40
)
Fix compilation in C90 mode (#284)
author
Thomas Koutcher
<thomas.koutcher@online.fr>
Fri, 20 Jun 2025 20:10:58 +0000
(22:10 +0200)
committer
GitHub
<noreply@github.com>
Fri, 20 Jun 2025 20:10:58 +0000
(16:10 -0400)
utf8proc.c
patch
|
blob
|
history
diff --git
a/utf8proc.c
b/utf8proc.c
index 34619947eca05e356fc9202785e4ca1b1618a644..a7aff86e923b9675172f2475d4cd3f69368ca327 100644
(file)
--- a/
utf8proc.c
+++ b/
utf8proc.c
@@
-688,8
+688,9
@@
UTF8PROC_DLLEXPORT utf8proc_ssize_t utf8proc_normalize_utf32(utf8proc_int32_t *b
int len = starter_property->comb_length;
utf8proc_int32_t max_second = utf8proc_combinations_second[idx + len - 1];
if (current_char <= max_second) {
+ int off;
// TODO: binary search? arithmetic search?
- for (
int
off = 0; off < len; ++off) {
+ for (off = 0; off < len; ++off) {
utf8proc_int32_t second = utf8proc_combinations_second[idx + off];
if (current_char < second) {
/* not found */